<?php

namespace RSP\ReseauSocialBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * ActiviteRecente
 *
 * @ORM\Table()
 * @ORM\Entity
 * 
 */
class ActiviteRecente
{
  /**
   * @ORM\ManyToOne(targetEntity="RSP\ReseauSocialBundle\Entity\Video")
   * @ORM\JoinColumn(nullable=false)
   */
  private $video;
  /**
   * @ORM\ManyToOne(targetEntity="RSP\ReseauSocialBundle\Entity\Photo")
   * @ORM\JoinColumn(nullable=false)
   */
  private $photo;
  
     /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;


    /**
     * @var string
     *
     * @ORM\Column(name="date", type="string", length=255)
     */
    private $date;

    /**
     * @var string
     *
     * @ORM\Column(name="action", type="string", length=255)
     */
    private $action;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set date
     *
     * @param string $date
     * @return ActiviteRecente
     */
    public function setDate($date)
    {
        $this->date = $date;
    
        return $this;
    }

    /**
     * Get date
     *
     * @return string 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set action
     *
     * @param string $action
     * @return ActiviteRecente
     */
    public function setAction($action)
    {
        $this->action = $action;
    
        return $this;
    }

    /**
     * Get action
     *
     * @return string 
     */
    public function getAction()
    {
        return $this->action;
    }

    /**
     * Set video
     *
     * @param \RSP\ReseauSocialBundle\Entity\Video $video
     * @return ActiviteRecente
     */
    public function setVideo(\RSP\ReseauSocialBundle\Entity\Video $video)
    {
        $this->video = $video;
    
        return $this;
    }

    /**
     * Get video
     *
     * @return \RSP\ReseauSocialBundle\Entity\Video 
     */
    public function getVideo()
    {
        return $this->video;
    }

    /**
     * Set photo
     *
     * @param \RSP\ReseauSocialBundle\Entity\Photo $photo
     * @return ActiviteRecente
     */
    public function setPhoto(\RSP\ReseauSocialBundle\Entity\Photo $photo)
    {
        $this->photo = $photo;
    
        return $this;
    }

    /**
     * Get photo
     *
     * @return \RSP\ReseauSocialBundle\Entity\Photo 
     */
    public function getPhoto()
    {
        return $this->photo;
    }
}